package com.aisile.student.controller;

import com.aisile.model.base.vos.R;
import com.aisile.model.student.dtos.LoginDto;
import com.aisile.student.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther:yry
 * @Date:2024/6/17 0017
 * @VERSON:1.0.1
 */
@RestController
@RequestMapping("/login")
public class LoginController {

    @Autowired
    private LoginService loginService;


    @PostMapping("/in")
    public R login(@RequestBody LoginDto dto){
        return loginService.login(dto);
    }
}
